<template>
  <div class="sys-wrap">
    <div class="sys-msg">
      {{ msg }} {{ gettime }}
    </div>
  </div>
</template>

<script type="text/javascript">
export default {
  props: ['msg', 'timestamp'],
  data () {
    return {};
  },
  computed: {
    gettime () {
      return new Date(parseInt(this.timestamp) * 1000).toLocaleString('chinese', {
        hour12: false
      });
    }
  }
};
</script>

<style lang='less'>
.sys-wrap {
	/*background-color: #fff;*/
	padding: 3px;
	display: flex;
	justify-content: center;
	align-items: center;
	.sys-msg {
		display: flex;
		justify-content: center;
		align-items: center;
		background-color: rgba(0, 0, 0, 0.05);
		border-radius: 10px;
		min-width: 40%;
		color: #999;
		font-size: 12px;
		padding: 3px;
	}
}
</style>
